package com.valuegroup.smarttodo.data.vo;

import com.valuegroup.smarttodo.data.model.TaskStep;

import java.io.Serializable;

public class TaskStepVo implements Serializable {
    private static final long serialVersionUID = 5878332734580438643L;

    private Long id;
    private Long taskId;
    private String title;
    private boolean chk;
    private int sort;

    public TaskStepVo() {
    }

    public TaskStepVo(Long id, Long taskId, String title, boolean chk, int sort) {
        this.id = id;
        this.taskId = taskId;
        this.title = title;
        this.chk = chk;
        this.sort = sort;
    }

    public static TaskStepVo convertTaskStep(TaskStep t) {
        return new TaskStepVo(t.getId(), t.getTaskId(), t.getTitle(), t.getIsFinish(), t.getSort());
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isChk() {
        return chk;
    }

    public void setChk(boolean chk) {
        this.chk = chk;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }


}
